package com.loadmore.common.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

/**
 * @author sunleilei
 * @date 2018/7/18
 * @time 14:15
 */

@Entity
public class Category implements Serializable {
    private static final long serialVersionUID = 8529344570443198465L;
    @Id(autoincrement = false)
    public Long id;
    public String name;
    public Long parent_id;
    public Long order;
    public String slug;
    public String image;
    public String created_at;
    public String updated_at;
    @Generated(hash = 1144220895)
    public Category(Long id, String name, Long parent_id, Long order, String slug,
            String image, String created_at, String updated_at) {
        this.id = id;
        this.name = name;
        this.parent_id = parent_id;
        this.order = order;
        this.slug = slug;
        this.image = image;
        this.created_at = created_at;
        this.updated_at = updated_at;
    }
    @Generated(hash = 1150634039)
    public Category() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Long getParent_id() {
        return this.parent_id;
    }
    public void setParent_id(Long parent_id) {
        this.parent_id = parent_id;
    }
    public Long getOrder() {
        return this.order;
    }
    public void setOrder(Long order) {
        this.order = order;
    }
    public String getSlug() {
        return this.slug;
    }
    public void setSlug(String slug) {
        this.slug = slug;
    }
    public String getImage() {
        return this.image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public String getCreated_at() {
        return this.created_at;
    }
    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }
    public String getUpdated_at() {
        return this.updated_at;
    }
    public void setUpdated_at(String updated_at) {
        this.updated_at = updated_at;
    }

}
